/**
  ******************************************************************************
  * @file    gt32f030_rccclko.c
  * @author  GT Application Team
  * @version V1.0.0
  * @date    03-January-2025
  *       
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2022 Giantec Semicondutor Inc</center></h2>
  *
  *             http://www.giantec-semi.com/
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GT32F030_RCCCLKO_H
#define __GT32F030_RCCCLKO_H	 

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "gt32f030.h"

/** @addtogroup GT32F030_StdPeriph_Driver
  * @{
  */

/** @addtogroup RCCCLKO
  * @{
  */ 

/* Exported macro ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/

/** @defgroup RCCCLKO_Exported_Constants
  * @{
  */

/** @defgroup RCCCLKO_Source_define 
  * @{
  */ 
typedef enum
{ 
  RCCCLKO_Source_HIRC    = 0x01,
	RCCCLKO_Source_LIRC    = 0x03,
	RCCCLKO_Source_PLL     = 0x04
}RCCCLKO_TypeDef;
#define IS_RCC_CLKOCLKSRC(CLKOCLKSRC)(((CLKOCLKSRC) == RCCCLKO_Source_HIRC)    || \
                                      ((CLKOCLKSRC) == RCCCLKO_Source_LIRC)    || \
                                      ((CLKOCLKSRC) == RCCCLKO_Source_PLL))
/**
  * @}
  */ 


/**
  * @}
  */

/* Exported types ------------------------------------------------------------*/
/** 
  * @brief   RCCCLKO Init structure definition  
  */
typedef struct
{
  RCCCLKO_TypeDef RCCCLKO_Source; 
}RCCCLKO_InitTypeDef;


/* Exported functions --------------------------------------------------------*/
void RCCCLKO_Init(RCCCLKO_InitTypeDef* RCCCLKO_InitStruct);
void RCCCLKO_Cmd(FunctionalState NewState);
#ifdef __cplusplus
}
#endif

#endif /*__GT32F030_RCCCLKO_H */

/**
  * @}
  */ 

/**
  * @}
  */ 

/************************ (C) COPYRIGHT Giantec Semicondutor Inc *****END OF FILE****/
